package com.ruoyi.zyx.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.ZyxDevice;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 提醒信息对象 zyx_warn
 *
 * @author lhs
 * @date 2021-06-03
 */
public class ZyxWarn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 医院id 关联部门表 */
    private Long departid;

    /** 设备id */
    private Long deviceid;

    /** 业务id */
    private Long servieid;

    /** 类型 */
    @Excel(name = "类型")
    private String warntype;

    /** 提醒日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提醒日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warndate;

    /** 是否已读 1已读0未读 */
    @Excel(name = "是否已读 1已读0未读")
    private String isread;

    /** 阅读人 */
    @Excel(name = "阅读人")
    private Long readuser;

    /** 阅读日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "阅读日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date readdate;

    /** 删除标记 */
    private String delFlag;
    private ZyxDevice zyxDevice;

    private ZyxCheck zyxCheck;
    private ZyxTakecare zyxTakecare;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDepartid(Long departid)
    {
        this.departid = departid;
    }

    public Long getDepartid()
    {
        return departid;
    }
    public void setDeviceid(Long deviceid)
    {
        this.deviceid = deviceid;
    }

    public Long getDeviceid()
    {
        return deviceid;
    }
    public void setServieid(Long servieid)
    {
        this.servieid = servieid;
    }

    public Long getServieid()
    {
        return servieid;
    }
    public void setWarntype(String warntype)
    {
        this.warntype = warntype;
    }

    public String getWarntype()
    {
        return warntype;
    }
    public void setWarndate(Date warndate)
    {
        this.warndate = warndate;
    }

    public Date getWarndate()
    {
        return warndate;
    }
    public void setIsread(String isread)
    {
        this.isread = isread;
    }

    public String getIsread()
    {
        return isread;
    }
    public void setReaduser(Long readuser)
    {
        this.readuser = readuser;
    }

    public Long getReaduser()
    {
        return readuser;
    }
    public void setReaddate(Date readdate)
    {
        this.readdate = readdate;
    }

    public Date getReaddate()
    {
        return readdate;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("departid", getDepartid())
            .append("deviceid", getDeviceid())
            .append("servieid", getServieid())
            .append("warntype", getWarntype())
            .append("warndate", getWarndate())
            .append("isread", getIsread())
            .append("readuser", getReaduser())
            .append("readdate", getReaddate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }

    public ZyxDevice getZyxDevice() {
        return zyxDevice;
    }

    public void setZyxDevice(ZyxDevice zyxDevice) {
        this.zyxDevice = zyxDevice;
    }

    public ZyxCheck getZyxCheck() {
        return zyxCheck;
    }

    public void setZyxCheck(ZyxCheck zyxCheck) {
        this.zyxCheck = zyxCheck;
    }

    public ZyxTakecare getZyxTakecare() {
        return zyxTakecare;
    }

    public void setZyxTakecare(ZyxTakecare zyxTakecare) {
        this.zyxTakecare = zyxTakecare;
    }
}
